<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>用户登陆</title>
<link href="styles/login.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form  method="post" id="loginForm" action="${pageContext.request.contextPath}/j_spring_security_check">
<div id="huakuang">
<c:if test="${not empty param.login_error}">
    <ul style="position:relative; margin:0px; padding:0px; list-style:none; margin-left:230px; padding-top:69px;">
    <li style="color:red;">用户名或密码错误！</li>
</c:if>
<c:if test="${empty param.login_error}">
    <ul style="position:relative; margin:0px; padding:0px; list-style:none; margin-left:230px; padding-top:100px;">
</c:if>
<li> 登录用户:<input type="text" name="j_username" id="j_username" value='<c:if test="${not empty param.login_error}"><c:out value="${SPRING_SECURITY_LAST_USERNAME}"/></c:if>' style="border:none; border-bottom:1px #999999 dotted"></li>
<li> 登录密码:<input type="password" name="j_password" id="j_password" style="border:none; border-bottom:1px #999999 dotted"></li>
<li> <div align="right" style="margin-right:30px;"><input type="submit" value=" 登  录 " class="comment_btn"/>&nbsp;&nbsp;<input type="button" value=" 注  册 " class="comment_btn" onclick="javascript:location.href='<s:url namespace="/" action="register" method="input"/>'"></div></li>
<li> <div align="right" style="margin-right:30px;"><a href='<s:url namespace="/" action="resetPwd" method="input"/>'>您忘记密码了吗</a></div></li>
<li> <div align="right" style="margin-right:30px; margin-top:20px; font-size: 13px;">北京市教育人才培训中心</div> </li>
</ul>
</div>
</form>
</body>
</html>
